package com.znufe.exam.viewmodel.admin.grade;

import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class StudentIndividualGradeRequestVM {

    private String className;

    private String stuName;

    private String courseName;

    public static StudentIndividualGradeRequestVM wipeBlank(StudentIndividualGradeRequestVM model) {
        if (model.getClassName() != null) {
            model.setClassName(model.getClassName().trim());
        }
        if (model.getStuName() != null) {
            model.setStuName(model.getStuName().trim());
        }
        if (model.getCourseName() != null) {
            model.setCourseName(model.getCourseName().trim());
        }
        return model;
    }

}
